package com.chkj.fbook.business.dao;

import com.chkj.fbook.business.domain.SeatDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 桌位/座位管理
 * @author shh_he
 * @email 980027164@qq.com
 * @date 2023-10-02 21:43:17
 */
@Mapper
public interface SeatDao {

	SeatDO get(String id);
	
	List<SeatDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(SeatDO seat);
	
	int update(SeatDO seat);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

    List<SeatDO> getAll();

    List<SeatDO> getByRoom(String roomId);

	int updateRoomNameByRoomId(SeatDO seat);

	int getSeatCountByRoomId(String roomId);

    List<SeatDO> getByOrderDateAndRoom(@Param("orderDate") String orderDate, @Param("roomId") String roomId);
    
	int editAdd1(SeatDO seat);

	int editSub1(SeatDO seat);

	int resetState(SeatDO seat);
}
